tty
Process in this terminal
ps
ps -f 4180
# get all process
ps -A | head -5 # same as -e
ps aux | head -4
ps axo comm,pid,uid,user,nice | head -4
# -ef same as ps aux
# -e or -A => all
# -f => full format
ps -ef | head -4
ps -u 1000 -o comm,pid,uid,user,ruser,nice,ppid,tty,group | head -4 # -u can be username
ps -eo comm,pid,uid,user,ruser,nice,ppid,tty,group | head -4
ps -ft pts/0
ps -ef | grep tint2
pgrep clementine
pgrep vi -l
pgrep -u root -l | head -5
pgrep -u root -vl | head -5
pgrep -x vi
pgrep -x clementine -l
pgrep -n clem -l
pgrep -t tty1 -l -u root
pgrep -t tty1 -a -u milad | head
pgrep -av pasystray > /dev/null # reverse
pidof bash
pidof -s bash
kill -l
# options are same as pgrep -n -P -u etc.
pkill -SIGTERM -u milad -x vi
kill -2 1080
bg, fg, &, jobs, ctrl+z, ctrl+c
ipynb
format: https://github.com/ravexina/linux-notes. html
exports of project available at: https://ravexina.github.io/linux-notes.Linux Notes by Milad As (Ravexina) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.